﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("ERP_PROD")]
    [SugarTable("sysdiagrams","ERP_PROD")]
    public partial class Sysdiagrams
    {
           public Sysdiagrams() { }

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="name必填" )]
           [StringLength(128, ErrorMessage ="name长度128" )]
           public string name {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="principal_id必填" )]
           public int principal_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int diagram_id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? version {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(-1, ErrorMessage ="definition长度-1" )]
           public byte[] definition {get;set;}

    }
}
